public class whw {
    public static void main2(String[] args) {
        double x = 20;
        double y = 40;
        double result = Math.sqrt(Math.pow(x,2) + Math.pow(y,2)); //计算x的平方加y的平方再开方的值
        System.out.println(result);
    }
    public static void main1(String[] args) {
        //People people = new People();
        People people1 = new People("王宏伟",20);
        //System.out.println(people);
        people1.eat();
        System.out.println(people1);
    }
}
